public class Main {
    public static void main(String[] args) {
        Thread t = new Thread(()->{
            MyTimer myTimer = new MyTimer();
            myTimer.MySchedult(new Runnable() {
                @Override
                public void run() {
                    System.out.println("1000");
                }
            },1000);
            myTimer.MySchedult(new Runnable() {
                @Override
                public void run() {
                    System.out.println("2000");
                }
            },2000);
            myTimer.MySchedult(new Runnable() {
                @Override
                public void run() {
                    System.out.println("3000");
                }
            },3000);
        });
        t.start();
    }
}
